home *** CD-ROM | disk | FTP | other *** search
- /* SoundErrors.c */
- /* Error handling routine for FutureSound auxiliary library */
-
- /* Changed, 6/22/86 by John Foust */
- /* removed call to printf() for 'fs.library' code - jjf 6/21/86 */
- /* changed return value of Error() from 0 to ErrFlag - jjf 6/21/86 */
-
- #include "types.h"
- #include "SoundErrors.h"
-
-
- /* added this variable - jjf */
- /* This is a way of getting the error code back to the user */
- long GlobalError;
-
- char *ErrMsg[] = {
- "File Open Failed",
- "File Read Error",
- "Device Open Failed",
- "Create Port Failed",
- "Not Enough Memory for IORequest",
- "BeginIO Failed",
- "IFF Format Error"
- };
-
-
- UWORD Error(ErrFlag,ProgMsg)
- int ErrFlag;
- char *ProgMsg;
- {
- /* removed printf() call - jjf */
- GlobalError = ErrFlag;
- /* printf("%s - %s\n",ErrMsg[ErrFlag],ProgMsg); */
- return(0);
- }
-
-